import React from 'react';
import { withRouter, RouteComponentProps } from "react-router-dom";
import PageLoading from '../components/page-loading';
import NavTabBar from '../components/common/nav-tabbar';




class Qa extends React.Component<Props & RouteComponentProps, State> {
    constructor(props){
        super(props)

        this.state = {
            loading: true,
            activityList: []
        }
    }
    emptyOpt = {
        des: '暂无活动',
        btnText: '',
        btnLink: '/'
    }
    componentDidMount(){
        this.setState({
            loading: false,
            activityList:[1]
        })
    }
   
    render(){
        const { activityList, loading } = this.state;

        return (
            <>
                <PageLoading 
                    loading={loading} 
                    empty={!activityList.length}
                    emptyOpt={this.emptyOpt}
                >
                   222222222222222222222222222222222222222222222
                </PageLoading>
                <NavTabBar active={1}/>
            </>
        )
    }
}
export default withRouter(Qa)